package com.example.huainanlive

import android.content.Context
import com.blankj.utilcode.util.Utils
import com.demon.androidbasic.BaseApplication

class MyApplication : BaseApplication() {

    /**
     *  URL 网络域名
     *
     *  activityList 保存当前App所有Activity
     *
     */
    companion object{
//        val URL = if (BuildConfig.DEBUG) "https://rockysports.cn/" else "https://sport.luojiweiye.com/"
        lateinit var sInstance: MyApplication
//        var apiToken: String? = "1e9b1381fed4405ea72b9178c7828b31"
        var apiToken: String? = "05e74716c3584b978fba296ef45fc8cc"

    }
    override fun onCreate() {
        super.onCreate()

//        MyApplication.apiToken = "1e9b1381fed4405ea72b9178c7828b31"

        //初始化blankj
        Utils.init(this@MyApplication)
        LivePlayRoom.initPlay(this)
        sInstance = this

    }
    object AppInfo {
        lateinit var versionName: String
        fun init(context: Context) {
            versionName = context.packageManager.getPackageInfo(context.packageName, 0).versionName
        }
    }

}